<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Xilie/js/js.js'></script>
	<title>系列列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('index');?>"><i class="icon-sitemap mr3 gray"></i>系列管理</a>
		<a href="<?php echo U('juji',array('xid'=>$_GET['xid']));?>" class="act"><i class="icon-th mr3 gray"></i>剧集管理</a>
		<a href="<?php echo U('addJuji',array('xid'=>$_GET['xid']));?>"><i class="icon-plus mr3 gray"></i>添加剧集</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tc">Jid</th>
				<th class="pct5 tc">集数</th>
				<th class="pct10">导演</th>
				<th class="pcd20">主演</th>
				<th class="pct40">链接</th>
				<th class="pct20 tc">操作</th>
			</tr>
			<?php $hd["list"]["x"]["total"]=0;if(isset($juji) && !empty($juji)):$_id_x=0;$_index_x=0;$lastx=min(1000,count($juji));
$hd["list"]["x"]["first"]=true;
$hd["list"]["x"]["last"]=false;
$_total_x=ceil($lastx/1);$hd["list"]["x"]["total"]=$_total_x;
$_data_x = array_slice($juji,0,$lastx);
if(count($_data_x)==0):echo "";
else:
foreach($_data_x as $key=>$x):
if(($_id_x)%1==0):$_id_x++;else:$_id_x++;continue;endif;
$hd["list"]["x"]["index"]=++$_index_x;
if($_index_x>=$_total_x):$hd["list"]["x"]["last"]=true;endif;?>

				<tr>
					<td class='tc'><span class="b gray2"><?php echo $x['jid'];?></span></td>
					<td class='tc'><span class="b gray2"><?php echo $hd['list']['x']['index'];?>集</span></td>
					<td class='tc'><?php echo $x['daoyan'];?></td>
					<td class='tc'><?php echo $x['zhuyan'];?></td>
					<td class='tc fv'><?php echo $x['url'];?></td>
					<td class='tc'>
						<a href="<?php echo U('editJuji?jid=');?><?php echo $x['jid'];?>/xid/<?php echo $x['xid'];?>" class="a bgwhite green bdd p5 mr5"><i class="icon-edit icon-border mr3 icon-large"></i>修改</a>
						<a href="<?php echo U('delJuji?jid=');?><?php echo $x['jid'];?>/xid/<?php echo $x['xid'];?>" onclick='return del();' class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
					</td>
				</tr>
			<?php $hd["list"]["x"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</table>
		<div class="page"><?php echo $page;?></div>
	</div>
</body>
</html>